package cc.jq1024.infrastructure.persistent.dao;

import cc.jq1024.infrastructure.persistent.po.RaffleActivityPO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

/**
 * <p>
 * 抽奖活动表 Mapper 接口
 * </p>
 *
 * @author lijiaqiang@ljq1024.cc
 * @since 2024-04-22
 */
@Mapper
public interface IRaffleActivityDao extends BaseMapper<RaffleActivityPO> {

    /** 通过ID查询抽奖活动信息 */
    RaffleActivityPO queryRaffleActivityByActivityId(Long activityId);

    /** 通过活动ID查询策略ID */
    Long queryStrategyIdByActivityId(Long activityId);

    /** 通过策略ID查询活动ID */
    Long queryActivityIdByStrategyId(Long strategyId);
}
